package com.shangs.platform.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 站点
 * </p>
 *
 * @author shangs
 * @since 2017-10-26
 */
@TableName("cms_site")
public class CmsSite extends Model<CmsSite> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 名称
     */
	private String name;
    /**
     * 模板名称
     */
	private String template;
	@TableField("template_mobile")
	private String templateMobile;
    /**
     * pc端域名
     */
	@TableField("domain_pc")
	private String domainPc;
    /**
     * 移动端域名
     */
	@TableField("domain_mobile")
	private String domainMobile;
    /**
     * 其他域名
     */
	@TableField("domain_others")
	private String domainOthers;
    /**
     * 标题
     */
	@TableField("site_title")
	private String siteTitle;
    /**
     * 默认标题ID
     */
	@TableField("site_folder_id")
	private Integer siteFolderId;
    /**
     * 默认文章ID
     */
	@TableField("site_article_id")
	private Integer siteArticleId;
    /**
     * 缩略图
     */
	private String thumbnail;
    /**
     * 数据库
     */
	@TableField("db_url")
	private String dbUrl;
    /**
     * 数据库用户
     */
	@TableField("db_user")
	private String dbUser;
    /**
     * 数据库密码
     */
	@TableField("db_pwd")
	private String dbPwd;
    /**
     * 数据库驱动
     */
	@TableField("db_driver")
	private String dbDriver;
    /**
     * 序号
     */
	private Integer sort;
    /**
     * 状态//radio/2,禁用,1,启用
     */
	private Integer status;
    /**
     * 默认站点：1,是,2,否
     */
	@TableField("site_defalut")
	private Integer siteDefalut;
    /**
     * 备注
     */
	private String remark;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 更新人
     */
	@TableField("update_id")
	private Integer updateId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建者
     */
	@TableField("create_id")
	private Integer createId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public String getTemplateMobile() {
		return templateMobile;
	}

	public void setTemplateMobile(String templateMobile) {
		this.templateMobile = templateMobile;
	}

	public String getDomainPc() {
		return domainPc;
	}

	public void setDomainPc(String domainPc) {
		this.domainPc = domainPc;
	}

	public String getDomainMobile() {
		return domainMobile;
	}

	public void setDomainMobile(String domainMobile) {
		this.domainMobile = domainMobile;
	}

	public String getDomainOthers() {
		return domainOthers;
	}

	public void setDomainOthers(String domainOthers) {
		this.domainOthers = domainOthers;
	}

	public String getSiteTitle() {
		return siteTitle;
	}

	public void setSiteTitle(String siteTitle) {
		this.siteTitle = siteTitle;
	}

	public Integer getSiteFolderId() {
		return siteFolderId;
	}

	public void setSiteFolderId(Integer siteFolderId) {
		this.siteFolderId = siteFolderId;
	}

	public Integer getSiteArticleId() {
		return siteArticleId;
	}

	public void setSiteArticleId(Integer siteArticleId) {
		this.siteArticleId = siteArticleId;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public String getDbUrl() {
		return dbUrl;
	}

	public void setDbUrl(String dbUrl) {
		this.dbUrl = dbUrl;
	}

	public String getDbUser() {
		return dbUser;
	}

	public void setDbUser(String dbUser) {
		this.dbUser = dbUser;
	}

	public String getDbPwd() {
		return dbPwd;
	}

	public void setDbPwd(String dbPwd) {
		this.dbPwd = dbPwd;
	}

	public String getDbDriver() {
		return dbDriver;
	}

	public void setDbDriver(String dbDriver) {
		this.dbDriver = dbDriver;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSiteDefalut() {
		return siteDefalut;
	}

	public void setSiteDefalut(Integer siteDefalut) {
		this.siteDefalut = siteDefalut;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getUpdateId() {
		return updateId;
	}

	public void setUpdateId(Integer updateId) {
		this.updateId = updateId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CmsSite{" +
			"id=" + id +
			", name=" + name +
			", template=" + template +
			", templateMobile=" + templateMobile +
			", domainPc=" + domainPc +
			", domainMobile=" + domainMobile +
			", domainOthers=" + domainOthers +
			", siteTitle=" + siteTitle +
			", siteFolderId=" + siteFolderId +
			", siteArticleId=" + siteArticleId +
			", thumbnail=" + thumbnail +
			", dbUrl=" + dbUrl +
			", dbUser=" + dbUser +
			", dbPwd=" + dbPwd +
			", dbDriver=" + dbDriver +
			", sort=" + sort +
			", status=" + status +
			", siteDefalut=" + siteDefalut +
			", remark=" + remark +
			", updateTime=" + updateTime +
			", updateId=" + updateId +
			", createTime=" + createTime +
			", createId=" + createId +
			"}";
	}
}
